/***************************************************************
*  Copyright (c) 2007 by GroupMe! Team (www.groupme.net)
*  All rights reserved.
*
*  This file is part of the GroupMe! Project. Source code of 
*  this project is closed and redistribution of this code is
*  prohibited. 
*  
*  Contact: http://www.groupme.net
*
*  This copyright notice MUST APPEAR in all copies of the file!
***************************************************************/
package net.groupme.model;

import net.groupme.model.dao.DATABASE_CONSTANTS;

/**
 * created on 19 Dec 2007
 * 
 * This enum lists all possible online stati...
 * 
 * @author Fabian Abel, <a href="mailto:abel@l3s.de">abel@l3s.de</a>
 * @author last edited by: $Author: fabian $
 * 
 * @version $Revision: 1.1 $ $Date: 2007-12-19 22:06:03 $
 */
public enum OnlineStatus {

	ONLINE(DATABASE_CONSTANTS.USER_STATUS_ONLINE_STATUS_ONLINE),
	LOGGED_IN_VIA_COOKIE(DATABASE_CONSTANTS.USER_STATUS_ONLINE_STATUS_LOGGED_IN_VIA_COOKIE),
	LOGGED_OUT(DATABASE_CONSTANTS.USER_STATUS_ONLINE_STATUS_LOGGED_OUT);
	
	/** the actual online status string */
	private String value = null; 
	
	private OnlineStatus(String status){
		this.value = status;
	}

	/**
	 * This method returns the value of a OnlineStatus object.
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * This method sets the value of a OnlineStatus object.
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}
	
}
